package ve.usb.crm.hibernate;



public class TareasPorPersona implements java.io.Serializable, ve.usb.cohesion.runtime.Auditable {

    /** Creates a new instance of TareasPorPersona */
    public TareasPorPersona() {}
    
    /**
     * Holds value of property id.
     */
    private Long id;

    /**
     * Getter for property id.
     * @return Value of property id.
     */
    public Long getId() {
        return this.id;
    }

    /**
     * Holds value of property idTareasPorPersona.
     */
    private long idTareasPorPersona;

    /**
     * Getter for property idTareasPorPersona.
     * @return Value of property idTareasPorPersona.
     */
    public long getIdTareasPorPersona() {
        return this.idTareasPorPersona;
    }

    /**
     * Setter for property idTareasPorPersona.
     * @param idTareasPorPersona New value of property idTareasPorPersona.
     */
    public void setIdTareasPorPersona(long idTareasPorPersona) {
        this.id = this.idTareasPorPersona = idTareasPorPersona;
    }

    /**
     * Holds value of property tarea.
     */
    private Tarea tarea;

    /**
     * Getter for property tarea.
     * @return Value of property tarea.
     */
    public Tarea getTarea() {
        return this.tarea;
    }

    /**
     * Setter for property tarea.
     * @param tarea New value of property tarea.
     */
    public void setTarea(Tarea tarea) {
        this.tarea = tarea;
    }
    /**
     * Holds value of property persona.
     */
    private Personal persona;

    /**
     * Getter for property persona.
     * @return Value of property persona.
     */
    public Personal getPersona() {
        return this.persona;
    }

    /**
     * Setter for property persona.
     * @param persona New value of property persona.
     */
    public void setPersona(Personal persona) {
        this.persona = persona;
    }



    public String toString() {
        return "<TareasPorPersona id='C" + this.id +
      //idTareasPorPersona
        ((tarea==null) ? "" : "\" tarea =\"C" + tarea.getId()) +

        ((persona==null) ? "" : "\" persona =\"C" + persona.getId()) +


        "'/>";
    }

}